function GuiContainerContract() {
  
};

GuiContainerContract.instance = function(prefix, order) {
  var gui = { list: []
            };
  for (var i = 0, il = order.length; i < il; i++) {
    gui.list[gui.list.length] = GuiContainerContract._order(prefix + '_' + i);
  }
  return gui;
};

GuiContainerContract._order = function(prefix) {
  return { orderType: document.getElementById(prefix + '_ordertype_div'),
           date: document.getElementById(prefix + '_date_div'),
           pp: document.getElementById(prefix + '_pp_div'),
           vp: document.getElementById(prefix + '_vp_div'),
           pProduct: document.getElementById(prefix + '_pProduct_div'),
           additions: document.getElementById(prefix + '_additions_div'),
           price: document.getElementById(prefix + '_price_div'),
           discount: document.getElementById(prefix + '_discount_div'),
           pay1: { container: document.getElementById(prefix + '_container1_div'),
                   payment: document.getElementById(prefix + '_pay1_div')
                 },
           pay2: { container: document.getElementById(prefix + '_container2_div'),
                   payment: document.getElementById(prefix + '_pay2_div')
                 },
           pay3: { container: document.getElementById(prefix + '_container3_div'),
                   payment: document.getElementById(prefix + '_pay3_div')
                 },
           pay4: { container: document.getElementById(prefix + '_container4_div'),
                   payment: document.getElementById(prefix + '_pay4_div')
                 },
           note: document.getElementById(prefix + '_note_div')
         }

};